/**
 * Created by Harvey Zhao on 2016/8/19.
 */
var mongoose = require('mongoose');
var shortid = require('shortid');
var Schema = mongoose.Schema;

var AdminRoleSchema = new Schema({
    _id: {
        type: String,
        unique: true,
        'default': shortid.generate
    },
    name: String,
    power: String,
    date: { type: Date, default: Date.now },
    comments: String
});


var AdminRole = mongoose.model("AdminRole", AdminRoleSchema);

module.exports = AdminRole;

